package traversal;

public class BNode {

	// de nodes
    public BNode leftBNode; 
    public BNode rightBNode;
    public boolean secondPop;
    
    public int inhoud; //inhoud van de Bnode

    public BNode(int inhoud ) {//constructor
    	this.inhoud= inhoud;
        this.leftBNode = null;
        this.rightBNode = null;
    }

    public void show() {
        System.out.print(inhoud);
    }
    
    public void setLeftNode(BNode left){
    	leftBNode = left;
    }
    
    public void setRightNode(BNode right){
    	rightBNode = right;
    }
    
    public BNode getLeftNode(){
    	return leftBNode;
    }
    
    public BNode getRightNode(){
    	return rightBNode;
    }
    
    public int getInhoud(){
    	return inhoud;
    }
}